package com.aaa.inbound.mapper;

import com.aaa.entity.inbound.PurchaseDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author aaa
 * @since 2020-11-25
 */
public interface PurchaseDetailMapper extends BaseMapper<PurchaseDetail> {



    //商品下拉查询
    @Select("SELECT id,bar,name FROM b_commodity WHERE warehouseid=#{warehouseid}")
    List<Map> findCommodity(Long warehouseid);
}
